<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model backend\models\Department */

$this->title = $model->ID;
$this->params['breadcrumbs'][] = ['label' => 'Departments', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
\yii\web\YiiAsset::register($this);
?>
<div class="department-view">

    <div class="panel">
		<div class="panel-heading">
            <?= Html::encode($this->title) ?>
		</div>
        <div class="panel-body">
            <p>
                <?= Html::a('修改', ['update', 'id' => $model->ID], ['class' => 'btn btn-primary']) ?>
                <?= Html::a('删除', ['delete', 'id' => $model->ID], [
                    'class' => 'btn btn-danger',
                    'data' => [
                        'confirm' => 'Are you sure you want to delete this item?',
                        'method' => 'post',
                    ],
                ]) ?>
            </p>

            <?= DetailView::widget([
                'model' => $model,
                'attributes' => [
                    'ID',
                    'XXID',
                    'BMMC',
                    'BMDM',
                    'FZRXM',
                    'FZRGH',
                    'JJ:ntext',
                    'CLSJ',
                    'CXSJ',
                    'ZT',
                ],
            ]) ?>
        </div>
    </div>

</div>
